package com.example.edu.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 专家讲座
 * </p>
 *
 * @author lihonghui
 * @since 2023-09-04
 */
@Data
@TableName("export_lectures")
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "ExportLectures对象", description = "专家讲座")
public class ExportLectures implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("专家名称")
    @TableField("export_name")
    private String exportName;

    @ApiModelProperty("讲座详情")
    @TableField("lecture_detail")
    private String lectureDetail;

    @ApiModelProperty("讲座视频")
    @TableField("lecture_video")
    private String lectureVideo;

    @ApiModelProperty("讲座图片")
    @TableField("lecture_picture")
    private String lecturePicture;

    @ApiModelProperty("讲座时间")
    @TableField("lecture_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lectureTime;

    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    @TableField("del")
    private Integer del;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

}